const { execSync } = require('child_process');

const msg = process.argv[2];
try {
  execSync('git add .');
  execSync(`git commit -m ${msg}`);
  execSync(' git push');
  console.log('提交成功');
} catch (error) {
  console.error(error);
}
